package com.yunji.cabinet.service.impl;

import com.yunji.cabinet.dao.ITakeDeliveryInfoDao;
import com.yunji.cabinet.domain.FillCargoInfoDO;
import com.yunji.cabinet.domain.TakeDeliveryInfoDO;
import com.yunji.cabinet.params.TakeDeliverParam;
import com.yunji.cabinet.service.ITakeDeliveryInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
public class TakeDeliveryInfoServiceImpl implements ITakeDeliveryInfoService {

    @Resource
    ITakeDeliveryInfoDao takeDeliveryInfoDao;

    @Override
    public void create(TakeDeliveryInfoDO infoDO) {
        takeDeliveryInfoDao.save(infoDO);
    }

    @Override
    public List<TakeDeliveryInfoDO> pageList(TakeDeliverParam param) {
        return takeDeliveryInfoDao.getPageList(param);
    }
}
